
<html> 
<head> 
    <title>upload-at-click demo</title> 
<script type="text/javascript" src="/seguridad/upclick-min.js"></script> 
</head> 
<body> 

<h1>Demo</h1>
<ol>
  <li>Click on the button</li>
  <li>Select file in "Open file" dialog</li>
  <li>Click Open</li>
</ol>
And you will see message: 'Starting upload: &ltfile name&gt'<br>
Then, after file uploaded, you will see message: 'Uploaded!'.
<br>
<br>

<input type="button" id="uploader" value="Upload">
 
<script type="text/javascript"> 
var element = document.getElementById('uploader');
upclick(
    {
    element:element, 
    action: 'about:blank', 
    onstart: 
      function(filename) 
      {
        alert('Starting upload: '+filename);
      },
    oncomplete:
      function(response_data) 
      {
        alert('Uploaded!');
      }
    } 
);
</script> 

<br>
<br>
<br>
